package com.foodmarket.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FoodItems {
    private int foodId;//食品主键id
    private String foodName;//食品名称
    private BigDecimal foodPrice;//食品价格
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate expiryDate;//食品到期时间

    private String foodImageUrl; // 图片用 byte[] 存储


    private int sellerId; // 外键，关联卖家 ID

    private String foodDescription;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate uploadDate;//上传时间
    private int stockQuantity;//食品剩余数量
}
